package com.general.app.xtgl.service;

import com.general.app.xtgl.dao.entity.CompanyModel;
import com.general.common.exception.BusinessException;
import com.general.common.security.entity.User;
import com.general.common.service.BaseService;

/**
 * 单位信息管理
 * @author Administrator
 *
 */
public interface ICompanyService extends BaseService<CompanyModel>{
	

	/**
	 * 保存单位信息
	 * @param company
	 * @return
	 * @throws BusinessException
	 */
	public boolean saveCompany(CompanyModel company) throws BusinessException;
	
	/**
	 * 批量删除单位信息
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public String scDwxx(String ids, User user) throws Exception;
	
	/**
	 * 根据单位名称取得单位
	 * @param company_name
	 * @return
	 */
	public CompanyModel getModelByName(String company_name);
}
